package com.echo.ssm.task;

import java.text.SimpleDateFormat;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.mysql.fabric.xmlrpc.base.Data;

@Component
public class AnnotationQuartz {
    //"0 0-55 10 * * ?"    
	@Scheduled(cron="0 * 10 * * ?")
	public void taskTest(){
		        
		System.out.println("我是定时任务测试方法"+System.currentTimeMillis());
		System.out.println("当前时间为+"+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Data()));
		
	}
}
